

export const chartOption = {
  tooltip: {
    trigger: "axis",
    axisPointer: {
      type: "cross",
    },
  },
  legend: {
    textStyle: {
      color: "#fff",
    },
    top: 20,
  },

  axisPointer: {
    link: [
      {
        xAxisIndex: "all",
      },
    ],
  },
  grid: [
    {
      top: "80", right: 50, bottom: "35", left: 50,
    },
  ],
  xAxis:
  {
    type: "category",
    boundaryGap: false,
    axisLine: { onZero: true },
    data: [],
  },
  yAxis: {
    type: "value",
    name: "(kwh)",
    max: null,
    axisTick: {
      show: false,
    },
    axisLine: {
      show: true, // 不显示坐标轴线

    },
    splitLine: {
      show: true,
      lineStyle: {
        color: "rgba(255,255,255,0.2)"
      }
    },
  },
  series: [{
    name: "基线曲线",
    data: [],
    type: "line",
    symbol: "none",
    smooth: true,
    emphasis: {
      focus: "series",
    },
    itemStyle: {
      normal: {
        color: '#70b601'

      }
    }
  }, {
    name: "用户电量曲线",
    data: [],
    type: "line",
    symbol: "none",
    smooth: true,
    emphasis: {
      focus: "series",
    },
    itemStyle: {
      color: '#159bd5'
    },
    lineStyle: {
      type: "dotted",
    }
  }, {
    name: "执行日响应曲线",
    data: [],
    areaStyle: {
      color: '#ec7f8c',
    },
    type: "line",
    symbol: "none",
    smooth: true,
    emphasis: {
      focus: "series",
    },
    itemStyle: {
      color: '#ec7f8c'
    }
  },
  ],
};
